package com.yuanluludev.app.activity

import android.os.Bundle
import com.yuanluludev.app.R
import com.yuanluludev.lib_base.adapter.SimpleFragmentPagerAdapter
import com.yuanluludev.lib_base.base.BaseActivity
import kotlinx.android.synthetic.main.activity_tab.*


/**
 *
 */
class TabActivity : BaseActivity() {

    override fun initEvents(savedInstanceState: Bundle?) {

//        val fragments = listOf(
//            BlankOneFragment(),
//            BlankTwoFragment(),
//            BlankThreeFragment(),
//        )

//        val titles = listOf("第一个", "第二个", "第三个")
//
//        viewPager?.adapter = SimpleFragmentPagerAdapter(
//            fm = supportFragmentManager,
//            fragments = fragments,
//            titles = titles
//        )
//        viewPager?.offscreenPageLimit = fragments.size
//        tabLayout?.setupWithViewPager(viewPager)
    }

    override fun getLayoutResId() = R.layout.activity_tab

}